/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.vo;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 卡表和商铺关联表
 *
 * @author csg
 * @date 2021-05-21 14:21:47
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "卡表和商铺关联表")
public class VCardGroupVo extends Model<VCardGroupVo> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 群组ID
     */
    @ApiModelProperty(value="群组ID")
    private Long groupId;
    /**
     * 卡id
     */
    @ApiModelProperty(value="卡id")
    private Long cardId;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;



	/**
	 * 卡片类型  0活动卡  1福利卡
	 */
	@ApiModelProperty(value="卡片类型  0活动卡  1福利卡")
	private Integer type;
	/**
	 * 卡名称
	 */
	@ApiModelProperty(value="卡名称")
	private String name;
	/**
	 * 使用有效类型: 0自开卡之日起X天有效  1时间范围  2 无期限
	 */
	@ApiModelProperty(value="使用有效类型: 0自开卡之日起X天有效  1时间范围  2 无期限")
	private Integer useEffectiveType;
	/**
	 * 有效天数
	 */
	@ApiModelProperty(value="有效天数")
	private Integer effectiveDays;
	/**
	 * 卡片生效时间
	 */
	@ApiModelProperty(value="卡片生效时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private LocalDateTime staTime;
	/**
	 * 卡片结束时间
	 */
	@ApiModelProperty(value="卡片结束时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private LocalDateTime endTime;
	/**
	 * 0上架中（立即上架）1待上架（预约上架）  2已下架
	 */
	@ApiModelProperty(value="0上架中（立即上架）1待上架（预约上架）  2已下架")
	private Integer cardStatus;
	/**
	 * 卡片生效时间（上架开始时间）
	 */
	@ApiModelProperty(value="卡片生效时间（上架开始时间）")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private LocalDateTime saleStaTime;
	/**
	 * 卡片结束时间（上架结束时间）
	 */
	@ApiModelProperty(value="卡片结束时间（上架结束时间）")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private LocalDateTime saleEndTime;
    }
